package com.itheima.service.impl.rocketmq.listener;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;

/**
 * ClassName: MessageListener
 * Description:
 * Date: 2023/03/21 PM 9:08:44
 * <p>
 * project: springboot
 * package: com.itheima.service.impl.rocketmq.listener
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
// @Component
@RocketMQMessageListener(topic = "order_id", consumerGroup = "group_rocketmq")
public class MessageListener implements RocketMQListener<String> {
    @Override
    public void onMessage(String id) {
        System.out.println("已完成短信发送业务(rocketmq), id: " + id);
    }
}
